package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.*;
import com.seawaterbt.ssm.mapper.ShengBasCrewMapper;
import com.seawaterbt.ssm.mapper.ShengBasHeatCompanyMapper;
import com.seawaterbt.ssm.service.ShengBasCrewService;
import com.seawaterbt.ssm.service.ShengBasHeatCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service

public class ShengBasHeatcompanyServiceImpl extends ServiceImpl<ShengBasHeatCompanyMapper, ShengBasHeatcompany> implements ShengBasHeatCompanyService {
    @Autowired CzBasHeatcompanyServiceImpl czBasHeatcompanyService;

    @DataSource(DataSourceEnum.DB3)
    @Override
    public boolean save(ShengBasHeatcompany entity) {
        return super.save(entity);
    }
    @DataSource(DataSourceEnum.DB3)
    @Override
    public List<ShengBasHeatcompany> list(Wrapper<ShengBasHeatcompany> queryWrapper) {
        return super.list(queryWrapper);
    }
}
